<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>垂直居中</title>
		<style type="text/css">
			div{
				width: 200px;
				height: 300px;
				background: pink;
				position: absolute;
				top: 0;left:0;
				right:0;bottom:0;
				margin: auto;
			}
		</style>
	</head>
	<body>
		<div></div>
	</body>
</html>
